package com.account.book.service;

import cn.hutool.core.lang.tree.Tree;
import com.account.book.entity.CategoryBase;
import com.account.book.request.CategoryBaseReqVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author liang-hw
 * @className CategoryBaseService
 * @description 分类表
 * @date 2023/11/09 14:55:28
 */
public interface CategoryBaseService extends IService<CategoryBase> {
    List<Tree<String>> findCategoryBaseList(Integer type);

    void save(CategoryBaseReqVo categoryBaseReqVo, MultipartFile uploadFile);

    void updateCategory(CategoryBaseReqVo categoryBaseReqVo);

    void remove(Integer type, String name);
}
